<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>用户</title>
</head>
<body>

<table class="ui-table">
    <thead>
    <tr>
        <th>序号</th>
        <th>姓名</th>
        <th>密码</th>
        <th>资金</th>
        <th>操作</th>
    </tr>
    </thead>

    <tbody>
    <tr th:each="info,infoStat : ${page.list}" >
        <td th:text="${infoStat.index}"></td>
        <td th:text="${info.name}"></td>
        <td th:text="${info.passWord}"></td>
        <td th:text="${info.fund}+'元'"></td>
        <td><a href="javascript:void(0)" style="color: #2a80eb"  th:onclick="|userEdit('${info.id}','${info.fund}')|"  >资金修改</a></td>
    </tr>
    </tbody>
</table>
<!-- 底部分页 -->
<form id="form" style="display: flex;justify-content: center">
    当前页  （<a  th:text="${page.currentPage+1}"  />）
    <a style="color: #2a80eb" onclick="loadPage('/user/list', - 1)" th:if="${page.currentPage > 0}">上一页</a>
    <a style="color: #2a80eb"  onclick="loadPage('/user/list',1)" th:if = "${page.currentPage < (page.totalPage - 1)}">下一页</a>
    共      <a style="color: #f59b00"  th:text="${page.total}" />条|
            <a style="color: #f59b00"  th:text="${page.totalPage}" />页
    每页    <a style="color: #f59b00"  th:text="${page.pageSize}" />条

    <input type="hidden" name="pageSize" th:value="${page.pageSize}" />
    <input name="currentPage" id="currentPage" type="hidden" th:value="${page.currentPage}"  />
    <input name="flag" id="flag" type="hidden" value="0"   />
</form>



</body>
</html>